<div class="bjui-pageHeader">
    <a href="{:U('Formguide/add')}" class="btn btn-green" data-toggle="dialog" data-width="520" data-height="320" data-id="dialog-mask" data-mask="true">{:L('formguide_add')}</a>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
                
            <th width="35" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('formid[]');"></th>
            <th align="center"><?php echo L('name_items')?></th>
            <th width='100' align="center"><?php echo L('tablename')?></th>
            <th width='150' align="center"><?php echo L('introduction')?></th>
            <th width="140" align="center"><?php echo L('create_time')?></th>
            <th width="160" align="center"><?php echo L('call')?></th>
            <th width="220" align="center"><?php echo L('operations_manage')?></th>
            </tr>
        </thead>
        <tbody>
            <foreach name="page_list" item="item">
                <tr data-id="{$item.id}">
                    <td align="center">
    <input type="checkbox" name="formid[]" value="<?php echo $item['modelid']?>">
    </td>
    <td><?php echo $item['name']?> [<a href="<?php echo APP_PATH?>index.php?m=formguide&c=index&a=show&formid=<?php echo $item['modelid']?>&siteid=<?php echo $item['siteid']?>" target="_blank"><?php echo L('visit_front')?></a>] <?php if ($item['items']) {?>(<?php echo $item['items']?>)<?php }?></td>
    <td align="center"><?php echo $item['tablename']?></td>
    <td align="center"><?php echo $item['introduce']?></td>
    <td align="center"><?php echo date('Y-m-d H:i:s', $item['addtime'])?></td>
    <td align="center"><input type="text" value="<script language='javascript' src='{APP_PATH}index.php?m=formguide&c=index&a=show&formid=<?php echo $item['modelid']?>&action=js&siteid=<?php echo $item['siteid']?>'></script>"></td>
    <td align="center"><a href="?m=formguide&c=formguide_info&a=init&formid=<?php echo $item['modelid']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo L('info_list')?></a> | <a href="?m=formguide&c=formguide_field&a=add&formid=<?php echo $item['modelid']?>"><?php echo L('field_add')?></a> | <a href="{:U('Formguide/modelField?modelid='.$item['modelid'])}" data-toggle="navtab" data-id="Formguide_modelField"><?php echo L('field_manage')?></a> <br /><a href="?m=formguide&c=formguide&a=public_preview&formid=<?php echo $item['modelid']?>"><?php echo L('preview')?></a> | <a href="javascript:edit('<?php echo $item['modelid']?>', '<?php echo safe_replace($item['name'])?>');void(0);"><?php echo L('modify')?></a> | <a href="?m=formguide&c=formguide&a=disabled&formid=<?php echo $item['modelid']?>&val=<?php echo $item['disabled'] ? 0 : 1;?>"><?php if ($item['disabled']==0) { echo L('field_disabled'); } else { echo L('field_enabled'); }?></a> | <a href="{:U('Formguide/delete', ['modelid' => $item['modelid']])}" data-toggle="doajax" data-confirm-msg="{:L('confirm_delete')}">{:L('delete')}</a> | <a href="javascript:stat('<?php echo $item['modelid']?>', '<?php echo safe_replace($item['name'])?>');void(0);"><?php echo L('stat')?></a></td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>